/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_cost.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.tb_cost.entity.TbCost;
import com.thinkgem.jeesite.modules.tb_cost.dao.TbCostDao;

/**
 * 运输中审核-费用Service
 * @author ZhangYangZe
 * @version 2017-06-13
 */
@Service
@Transactional(readOnly = true)
public class TbCostService extends CrudService<TbCostDao, TbCost> {

	public TbCost get(String id) {
		return super.get(id);
	}
	
	public List<TbCost> findList(TbCost tbCost) {
		return super.findList(tbCost);
	}
	
	public Page<TbCost> findPage(Page<TbCost> page, TbCost tbCost) {
		return super.findPage(page, tbCost);
	}
	
	@Transactional(readOnly = false)
	public void save(TbCost tbCost) {
		super.save(tbCost);
	}
	
	@Transactional(readOnly = false)
	public void delete(TbCost tbCost) {
		super.delete(tbCost);
	}
	/**
	 * 以运单id查询已审核的费用
	 * @param List<String> waybillId
	 * @return List<TbCost>
	 * @author ZhaoHai
	 */
	public List<TbCost> reviewedCost(List<String> waybillId){
		return dao.reviewedCost(waybillId);
	}
}